package cn.wolfcode.ssm.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;

@Getter
@Setter
public class SystemDictionary {
    private Long id;

    private String sn;//编码  job
    private String title;//标题  工作
    private String intro;//描述  客户工作

    public String getJson(){
        HashMap map = new HashMap();
        map.put("id",id);
        map.put("sn",sn);
        map.put("title",title);
        map.put("intro",intro);
        //不能直接传this进去,会出现死循环
        return JSON.toJSONString(map);
    }
}
